package com.njym.payment.alipay.properties;

import com.njym.annotation.ExistCheck;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * @author zhy
 * @date 2019-10-22 17:24
 **/
public class SmilePayParams {
	@NotBlank(message = "设备信息不能为空")
	private String metaInfo;

	@ApiModelProperty(value = "机构ID", name = "orgId", required = true, example = "1032882050992017410")
	@NotBlank(message = "orgId不能为空")
	private String orgId;

	@ApiModelProperty(value = "渠道ID", name = "channelId", required = true, example = "1034683401866588162")
	@NotBlank(message = "channelId不能为空")
	private String channelId;

	private String scene;

	@ApiModelProperty(value = "系统订单号", name = "outTradeNo", required = true, example = "1111111141111")
	@NotBlank(message = "outTradeNo不能为空")
	@ExistCheck(message = "订单号已存在，请重新生成！")
	private String outTradeNo;

	@ApiModelProperty(value = "病人卡号", name = "cardNo", required = false, example = "12345678", allowEmptyValue = true)
	private String cardNo;

	@ApiModelProperty(value = "病人姓名", name = "name", required = false, example = "测试人1", allowEmptyValue = true)
	private String name;

	@ApiModelProperty(value = "标题", name = "subject", required = true, example = "测试标题")
	private String subject;

	@ApiModelProperty(value = "描述", name = "describe", required = true, example = "测试描述")
	private String describe;

	@ApiModelProperty(value = "订单总金额", name = "totalAmount", required = true, example = "1.00")
	@NotBlank(message = "totalAmount(交易金额)不能为空")
	private String totalAmount;

	@ApiModelProperty(value = "卖家支付宝账号ID", name = "sellerId", required = false, example = "")
	private String sellerId;

	private String terminalId;

	@ApiModelProperty(value = "商户操作员编号", name = "operatorId", required = true, example = "111111111")
	@NotBlank(message = "operatorId不能为空")
	private String operatorId;

	@ApiModelProperty(value = "操作员姓名", name = "operatorName", required = true, example = "操作员1")
	@NotBlank(message = "operatorName不能为空")
	private String operatorName;

	public String getMetaInfo() {
		return metaInfo;
	}

	public void setMetaInfo(String metaInfo) {
		this.metaInfo = metaInfo;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getChannelId() {
		return channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	public String getScene() {
		return scene;
	}

	public void setScene(String scene) {
		this.scene = scene;
	}

	public String getOutTradeNo() {
		return outTradeNo;
	}

	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public String getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
	}

	public String getSellerId() {
		return sellerId;
	}

	public void setSellerId(String sellerId) {
		this.sellerId = sellerId;
	}

	public String getTerminalId() {
		return terminalId;
	}

	public void setTerminalId(String terminalId) {
		this.terminalId = terminalId;
	}

	public String getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}

	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}
}
